//
//  ViewController.m
//  dsa
//
//  Created by Mac on 16/7/16.
//  Copyright © 2016年 huigu. All rights reserved.
//

#import "ViewController.h"

@interface ViewController ()

@property (weak, nonatomic) IBOutlet UIImageView *imgview;
@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view, typically from a nib.
    
}
-(void)touchesBegan:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event{
    [UIView animateWithDuration:2 delay:0 usingSpringWithDamping:0.1 initialSpringVelocity:1.0f options:UIViewAnimationOptionCurveEaseOut  animations:^{
        self.imgview.transform = CGAffineTransformScale(self.imgview.transform, self.view.frame.size.width/2, self.view.frame.size.height/2);
    } completion:^(BOOL finished) {
        
    }];
}
- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

@end
